<template>
  <div id="app">
    <Header :key="updateKey" @updateKeyFn="updateKeyFn" />

    <Modal />

    <Nav />
    <router-view />
    <Footer />
    <Login @updateKeyFn="updateKeyFn" />
  </div>
</template>

<script>
import Header from "@/components/Header.vue";
import Nav from "@/components/Nav.vue";
import Footer from "@/components/Footer.vue";
import Login from "@/components/Login.vue";
import Modal from "@/components/Modal.vue";
import Goods from "@/views/Goods.vue";
export default {
  data() {
    return {
      updateKey: 0,
    };
  },
  components: {
    Header,
    Nav,
    Footer,
    Login,
    Modal,
    Goods
  },
  methods: {
    updateKeyFn() {
      this.updateKey++;
    },
  },
};
</script>

<style lang="less">
</style>
